package Eyjafjalla.card.skill;

import Eyjafjalla.action.IncreaseCardAction;
import Eyjafjalla.action.MissSoundAction;
import Eyjafjalla.action.PlayTopCloudAction;
import Eyjafjalla.card.AbstractEyjafjallaCard;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.core.CardCrawlGame;
import com.megacrit.cardcrawl.localization.CardStrings;
import com.megacrit.cardcrawl.monsters.AbstractMonster;

public class MissSound_Eyjafjalla extends AbstractEyjafjallaCard {
    public static final String ID = "MissSound_Eyjafjalla";
    private static final CardStrings cardStrings;

    public MissSound_Eyjafjalla(){
        super(ID, cardStrings.NAME,1,cardStrings.DESCRIPTION,CardType.SKILL,CardRarity.COMMON,CardTarget.NONE);
        setFireDescription(cardStrings.EXTENDED_DESCRIPTION[0]);
        this.baseMagicNumber = 1;
        this.magicNumber = 1;
    }

    @Override
    public AbstractCard makeCopy() {
        return new MissSound_Eyjafjalla();
    }

    @Override
    public void use(AbstractPlayer p, AbstractMonster m) {
        this.shuffleBackIntoDrawPile = this.isFire();
        this.addToBot(new PlayTopCloudAction(this.magicNumber,true));
        this.addToBot(new IncreaseCardAction(this,0,0,1,0));
    }

    @Override
    public void upgrade() {
        if(!this.upgraded){
            upgradeName();
            upgradeBaseCost(0);
        }
    }

    static {
        cardStrings = CardCrawlGame.languagePack.getCardStrings(ID);
    }
}

